Maximal safe resection